﻿#ifndef POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARSIDEBARFIXEDVALUECHANGED_H
#define POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARSIDEBARFIXEDVALUECHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdPolarCoordinateGraphSidebarFixedValueChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdPolarCoordinateGraphSidebarFixedValueChanged();
        ~CmdPolarCoordinateGraphSidebarFixedValueChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setPolarCoordinateGraphSidebarFixedValueChanged(int mainWindowId, QList<int> allIndexList);

    private:
        int m_mainWindowId;
        QList<int> m_allIndexList;
    };
} // namespace PostCommand

#endif
